#include<iostream>


class Solution {
public:
    int getSum(int a, int b) {
        while (b != 0)
        {
            int x = a ^ b;
            unsigned int carry = (unsigned int)(a & b) << 1;
            a = x;
            b = (int)carry;
        }
        return a;
    }
};